<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>菜单信息</title>
	</head>
	<body>
		<table class="table-layout">
			<tr class="tr-odd">
				<td class="td-label">
					名称
				</td>
				<td>
					<c:out value="${menu.name}" />
				</td>
			</tr>
			<tr class="tr-even">
				<td class="td-label">
					序号
				</td>
				<td>
					<c:out value="${menu.serial}" />
				</td>
			</tr>
			<tr class="tr-odd">
				<td class="td-label">
					<label>
						显示名
					</label>
				</td>
				<td>
					<c:out value="${menu.title}" />
				</td>
			</tr>
			<tr class="tr-even">
				<td class="td-label">
					类型
				</td>
				<td>
					<c:out value="${menu.menuType}" />
				</td>
			</tr>
			<tr class="tr-odd">
				<td class="td-label">
					<label>
						URL
					</label>
				</td>
				<td>
					<c:out value="${menu.url}" />
				</td>
			</tr>
			<tr class="tr-even">
				<td class="td-label">
					父菜单
				</td>
				<td>
					<logic-el:iterate name="allMenus" id="m">
						<c:if test="${menu.parentId == m.id}">
							<c:out value="${m.name}" /> &nbsp;
						</c:if>
					</logic-el:iterate>
				</td>
			</tr>
			<tr class="tr-odd">
				<td class="td-label">
					角色
				</td>
				<td>
					<c:forEach items="${menu.roles}" var="role">
						<c:out value="${role.name}" />,
					</c:forEach>
				</td>
			</tr>
		</table>
		<br />
		<div class="center-opertion">
			<button onclick="javascript:history.back();" class="button">
				返回
			</button>
		</div>
	</body>
</html>
